import { Module, forwardRef } from '@nestjs/common';
import { MongooseModule } from '@nestjs/mongoose';
import { TypeSchema } from 'src/types/modules/superType/types/schemas/type.schema';
import { TypeService } from './type.service';
import { TypeController } from './type.controller';
import { DataSourceModule } from './data-source.module';
// 导入相关模块
import { VFSModule } from '../../editor/server/vfs/vfs.module';
import { VersionControlModule } from '../../editor/server/version-control.module';
@Module({
  imports: [
    MongooseModule.forFeature([
      { name: 'type', schema: TypeSchema },
    ]),
    forwardRef(() => VFSModule),
    forwardRef(() => VersionControlModule),
    DataSourceModule,
  ],
  providers: [
    TypeService,
  ],
  controllers: [TypeController],
  exports: [TypeService, DataSourceModule],
})
export class TypeModule {}
